package geektime.spring.springbucks.service;

import geektime.spring.springbucks.mapper.CoffeeMapper;
import geektime.spring.springbucks.model.Coffee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Pactera
 */
@Service
public class CoffeeService {
    @Autowired
    private CoffeeMapper coffeeMapper;
    public Coffee getCoffee(Long id){
        Coffee s = coffeeMapper.selectByPrimaryKey(id);
        return s;
    }
}
